package com.sanceng.controller;

import com.sanceng.feign.OpenFeignService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author zhangwei
 * @version 1.0
 * @date 2023/9/30 23:54
 */
@RestController
public class ConsumerController {

    @Value("${my.cd}")
    private String c;

    @Autowired
    private OpenFeignService openFeignService;


    @RequestMapping("/test")
    public String  test() {
        return "success"  +c;
    }


    @RequestMapping("/feign")
    public String  mytest() {
        return openFeignService.mytest();
    }



}
